﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace skags.Models
{
    public class NewsTablesViewModel
    {
        public IEnumerable<New> News { get; set; }
        public IEnumerable<NewsCategory> Categories { get; set; }
    }

    public class NewsViewModel
    {
        public int ID { get; set; }
        public string Title { get; set; }
        public System.Guid CreatorID { get; set; }
        public string CreatorName { get; set; }
        public DateTime DateCreated { get; set; }
        public string Text { get; set; }
        public int? ReadCount { get; set; }
        public string Tags { get; set; }
        public int CategoryID { get; set; }
        public string CategoryName { get; set; }
    }

    public class NewsCatViewModel
    {
        public int ID { get; set; }
        public string Title { get; set; }
        public System.Guid CreatorID { get; set; }
        public DateTime DateCreated { get; set; }
        public string Text { get; set; }
        public int? ReadCount { get; set; }
        public string Tags { get; set; }
        public int CategoryID { get; set; }
        public IEnumerable<NewsCategory> Categories { get; set; }
    }
}